projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d524175
)
gtk-demo: fix the colorsel example
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 2 Mar 2012 14:37:10 +0000
(09:37 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 2 Mar 2012 14:57:53 +0000
(09:57 -0500)
It is necessary to hide the dialog on "response", else it won't
go away.
demos/gtk-demo/colorsel.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/colorsel.c
b/demos/gtk-demo/colorsel.c
index 4cdfeee21c0b12eebc3674e744d2e21e8cd2d046..6c46607ae36208990d5ecee73a9875a9fa7d1568 100644
(file)
--- a/
demos/gtk-demo/colorsel.c
+++ b/
demos/gtk-demo/colorsel.c
@@
-40,6
+40,8
@@
response_cb (GtkDialog *dialog,
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
gtk_widget_override_background_color (da, 0, &color);
}
+
+ gtk_widget_hide (GTK_WIDGET (dialog));
}
static void